package com.xiehua.task.job.pool;

public class FixedJob extends Job{

    private static final long serialVersionUID = 1L;

    private String className;

    private String methodName;

    private String cron;

    public FixedJob(){}

    public FixedJob(String topic,String className,String methodName,String cron){
        this.topic = topic;
        this.className = className;
        this.methodName = methodName;
        this.cron = cron;
        this.type = JobType.fixed;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    @Override
    public String toString() {
        return "FixedJob{" +
                "className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", cron='" + cron + '\'' +
                '}';
    }
}
